counts = 3

while counts > 0:
    temp = input("开始猜数字游戏:")
    guess = int(temp)
    
    if guess == 8:
        print("猜对了！")
        break
    else:
        if  guess < 8:
            print("猜小啦~")
        else:
            print("猜大了！")
        counts = counts - 1
        
print("游戏结束了")

